﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Commonality.ReturnView
{
    public class ApiResult
    {

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 是否正常
        /// </summary>
        public bool Success { get; set; }
        /// <summary>
        /// 逻辑状态码
        /// </summary>
        public ApiResultStatus apiResultStatus { get; set; }
        /// <summary>
        /// 要返回的数据
        /// </summary>
        public  object Data { get; set; }
    }
    /// <summary>
    /// 状态码
    /// </summary>
    public enum ApiResultStatus { 
       Success=1,
       Failure=2,
       NoAuth=3
    
    }
}
